﻿using System;
using Entity.Models.dto;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;

#nullable disable

namespace Entity.Models.Entities
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public partial class RepositorySysContext : DbContext
    {
        public RepositorySysContext()
        {
        }
        public RepositorySysContext(DbContextOptions<RepositorySysContext> options) : base(options)
        {
        }

        /// <summary>
        /// 部门表
        /// </summary>
        public virtual DbSet<DepartmentInfo> DepartmentInfo { get; set; }

        /// <summary>
        /// 用户表
        /// </summary>
        public virtual DbSet<UserInfo> UserInfos { get; set; }

        /// <summary>
        /// 角色表
        /// </summary>
        public virtual DbSet<RoleInfo> RoleInfo { get; set; }

        /// <summary>
        /// 用户角色表(中间表)
        /// </summary>
        public virtual DbSet<R_UserInfo_RoleInfo> R_UserInfo_RoleInfo { get; set; }

        /// <summary>
        /// 菜单表
        /// </summary>
        public virtual DbSet<MenuInfo> MenuInfo { get; set; }
        
        /// <summary>
        /// 菜单中间表
        /// </summary>
        public virtual DbSet<R_RoleInfo_MenuInfo> R_RoleInfo_MenuInfo { get; set; }

        /// <summary>
        /// 耗材类别表
        /// </summary>
        public virtual DbSet<Category> Category { get; set; }

        /// <summary>
        /// 耗材信息表
        /// </summary>
        public virtual DbSet<ConsumableInfo> ConsumableInfo { get; set; }

        /// <summary>
        /// 耗材记录表
        /// </summary>
        public virtual DbSet<ConsumableRecord> ConsumableRecord { get; set; }

        /// <summary>
        /// 文件信息表
        /// </summary>
        public virtual DbSet<FileInfo> FileInfo { get; set; }


        /// <summary>
        /// 工作流实例表
        /// </summary>
        public virtual DbSet<WorkFlow_Instance> WorkFlow_Instance { get; set; }

        /// <summary>
        /// 工作流模板实体
        /// </summary>
        public virtual DbSet<WorkFlow_Model> WorkFlow_Model { get; set; }
        /// <summary>
        /// 工作流步骤实体
        /// </summary>
        public virtual DbSet<WorkFlow_InstanceStep> WorkFlow_InstanceStep { get; set; }

    }
}
